import { BasicLayout, ContentLayout } from '@/views/layouts';
export default {
  path: '/demo',
  name: 'demo',
  component: BasicLayout,
  redirect: '/demo/front',
  meta:{
    title: '示例',
    type: 2
  },
  children: [
    {
      path: '/demo/front',
      name: 'demo-front',
      component: () => import(/* webpackChunkName: 'defaultPage_WorkbenchFront' */'@/views/defaultPage/WorkbenchFront'),
      meta: {
        title: '工作台',
        keepAlive: true,
        icon: 'alert-outlined'
      }
    },
    {
      path: '/demo/versionUpdate',
      name: 'demo-versionUpdate',
      component: () => import(/* webpackChunkName: 'login_versionUpdate' */'@/views/defaultPage/VersionUpdate'),
      meta: {
        title: '版本更新',
        keepAlive: true
      }
    },
    {
      path: '/demo/exception',
      name: 'demo-exception',
      component: ContentLayout,
      meta: {
        title: '示例异常',
        keepAlive: true,
        icon: 'alert-outlined'
      },
      children: [
        {
          path: '/demo/exception/404',
          name: 'demo-exception-404',
          component: () => import(/* webpackChunkName: 'exception404' */ '@/views/exception/Exception404'),
          meta: {
            title: '404无法找到页面',
            keepAlive: false,
            icon: 'shopping-outlined'
          }
        },
        {
          path: '/demo/exception/403',
          name: 'demo-exception-403',
          component: () => import(/* webpackChunkName: 'exception403' */ '@/views/exception/Exception403'),
          meta: {
            title: '403拒绝访问',
            keepAlive: false
          }
        },
        {
          path: '/demo/exception/500',
          name: 'demo-exception-500',
          component: () => import(/* webpackChunkName: 'exception500' */ '@/views/exception/Exception500'),
          meta: {
            title: '500服务器的内部错误sfasfsa',
            keepAlive: false
          }
        }
      ]
    }
  ]
}

